package jmind.core.test;

import redis.clients.jedis.JedisPubSub;

public class MyRedisListener extends JedisPubSub {

    private void p(String str) {
        System.out.println(str);
    }

    @Override
    public void onMessage(String channel, String message) {
        p("onMessage :" + channel + "--" + message);
    }

    @Override
    public void onPMessage(String pattern, String channel, String message) {
        p("onPMessage: " + pattern + "--" + channel + "--" + message);

    }

    @Override
    public void onSubscribe(String channel, int subscribedChannels) {
        p("onSubscribe :" + channel + "--" + subscribedChannels);

    }

    @Override
    public void onUnsubscribe(String channel, int subscribedChannels) {
        p("onUnsubscribe :" + channel + "--" + subscribedChannels);

    }

    @Override
    public void onPUnsubscribe(String pattern, int subscribedChannels) {
        p("onPUnsubscribe: " + pattern + "--" + subscribedChannels);

    }

    @Override
    public void onPSubscribe(String pattern, int subscribedChannels) {
        p("onPSubscribe :" + pattern + "--" + subscribedChannels);

    }

}
